package apigatewayconfig

import "os"

const (
	// ApiGatwayBootstrapFileNameEnv is the env variable to set bootstrap file name.
	// Do not use this and read from env directly. Its value is read and kept in
	// variable ApiGatwayBootstrapFileName.
	//
	// When both bootstrap FileName and FileContent are set, FileName is used.
	ApiGatwayBootstrapFileNameEnv = "API_GATEWAY_BOOTSTRAP"
	// ApiGatwayBootstrapFileContentEnv is the env variable to set bootstrap file
	// content. Do not use this and read from env directly. Its value is read
	// and kept in variable ApiGatwayBootstrapFileContent.
	//
	// When both bootstrap FileName and FileContent are set, FileName is used.
	ApiGatwayBootstrapFileContentEnv = "API_GATEWAY_BOOTSTRAP_CONFIG"
)

var (
	// ApiGatwayBootstrapFileName holds the name of the file which contains api_gateway
	// bootstrap configuration. Users can specify the location of the bootstrap
	// file by setting the environment variable "API_GATEWAY_BOOTSTRAP".
	//
	// When both bootstrap FileName and FileContent are set, FileName is used.
	ApiGatwayBootstrapFileName = os.Getenv(ApiGatwayBootstrapFileNameEnv)
	// ApiGatwayBootstrapFileContent holds the content of the api_gateway bootstrap
	// configuration. Users can specify the bootstrap config by setting the
	// environment variable "API_GATEWAY_BOOTSTRAP_CONFIG".
	//
	// When both bootstrap FileName and FileContent are set, FileName is used.
	ApiGatwayBootstrapFileContent = os.Getenv(ApiGatwayBootstrapFileContentEnv)
)
